package com.ruoyi.performance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.performance.mapper.AssessmentItemsMapper;
import com.ruoyi.performance.domain.AssessmentItems;
import com.ruoyi.performance.service.IAssessmentItemsService;

/**
 * 考核项目Service业务层处理
 * 
 * @author eden
 * @date 2023-05-19
 */
@Service
public class AssessmentItemsServiceImpl implements IAssessmentItemsService 
{
    @Autowired
    private AssessmentItemsMapper assessmentItemsMapper;

    /**
     * 查询考核项目
     * 
     * @param itemId 考核项目主键
     * @return 考核项目
     */
    @Override
    public AssessmentItems selectAssessmentItemsByItemId(Long itemId)
    {
        return assessmentItemsMapper.selectAssessmentItemsByItemId(itemId);
    }

    /**
     * 查询考核项目列表
     * 
     * @param assessmentItems 考核项目
     * @return 考核项目
     */
    @Override
    public List<AssessmentItems> selectAssessmentItemsList(AssessmentItems assessmentItems)
    {
        return assessmentItemsMapper.selectAssessmentItemsList(assessmentItems);
    }

    /**
     * 新增考核项目
     * 
     * @param assessmentItems 考核项目
     * @return 结果
     */
    @Override
    public int insertAssessmentItems(AssessmentItems assessmentItems)
    {
        return assessmentItemsMapper.insertAssessmentItems(assessmentItems);
    }

    /**
     * 修改考核项目
     * 
     * @param assessmentItems 考核项目
     * @return 结果
     */
    @Override
    public int updateAssessmentItems(AssessmentItems assessmentItems)
    {
        return assessmentItemsMapper.updateAssessmentItems(assessmentItems);
    }

    /**
     * 批量删除考核项目
     * 
     * @param itemIds 需要删除的考核项目主键
     * @return 结果
     */
    @Override
    public int deleteAssessmentItemsByItemIds(Long[] itemIds)
    {
        return assessmentItemsMapper.deleteAssessmentItemsByItemIds(itemIds);
    }

    /**
     * 删除考核项目信息
     * 
     * @param itemId 考核项目主键
     * @return 结果
     */
    @Override
    public int deleteAssessmentItemsByItemId(Long itemId)
    {
        return assessmentItemsMapper.deleteAssessmentItemsByItemId(itemId);
    }
}
